package com.feng.spring5.test;

import com.feng.spring51.aop.User;
import com.feng.spring51.config.SpringConfig;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class aop1 {
    @Test
    public void test1(){
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        User u = context.getBean(User.class);
        u.add();

    }
}
